package com.prd.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.prd.dto.CustomerFollowDTO;
import com.prd.model.CustomerFollowDO;
import com.prd.util.JsonData;

import java.util.Date;
import java.util.Map;

/**
 * <p>
 * 客户-跟进 服务类
 * </p>
 *
 * @author o1
 * @since 2024-01-02
 */
public interface CustomerFollowService extends IService<CustomerFollowDO> {
    /**
     * 跟进列表
     *
     * @param page
     * @param size
     * @param date
     * @param businessManagerId
     * @param status
     * @return
     */
    Map<String, Object> uSearch(int page, int size, Date date, int businessManagerId, int status);

    /**
     * 新增跟进
     * @param followDTO
     * @return
     */
    JsonData uAdd(CustomerFollowDTO followDTO);

    /**
     * 查看跟进详情
     * @param followNo
     * @param businessManagerId
     * @param status
     * @return
     */
    JsonData uDetail(String followNo, int businessManagerId, int status);

    /**
     * 请求增援
     *
     * @param followNo
     * @param businessManagerId
     * @param businessManager
     * @param businessDepartmentId
     * @param businessDepartment
     * @param businessPhone
     * @return
     */
    JsonData uAddBusinessManager(String followNo, int businessManagerId, String businessManager, int businessDepartmentId, String businessDepartment, String businessPhone);

    /**
     * 修改跟进
     * @param followDTO
     * @return
     */
    JsonData uUpdate(CustomerFollowDTO followDTO);

    JsonData uFinish(CustomerFollowDTO followDTO);

    JsonData uArrival(CustomerFollowDTO followDTO);
}
